﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    /// <summary>
    /// ETL_Task表实体类
    /// </summary>
    public class ETL_TaskInfo
    {

        public string DBType { get; set; }
        public string TaskID { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }
        /// <summary>
        /// 任务类型
        /// 0:重复执行
        /// 1:执行1次后删除
        /// </summary>
        public int TaskType { get; set; }
        public int TaskPlanType { get; set; }
        public string TaskTypeStr { get; set; }

        public string JobStepID { get; set; }

        public int JobStepOrderID { get; set; }

        public int FrequencyType { get; set; }
        /// <summary>
        /// 执行时间
        /// </summary>
        private DateTime _TaskStartTime;
        public string TaskStartTime { get; set; }
        private DateTime _TaskEndTime;
        public string TaskEndTime { get; set; }
        /// <summary>
        /// 任务执行周期
        /// </summary>
        public int TaskIntervalDays { get; set; }
        public string TaskIntervalDaysStr { get; set; }
        public int TaskEveryDayIntervalMinute { get; set; }
        /// <summary>
        /// 任务生效日期
        /// </summary> 
        private DateTime _TaskStartDate;
        public string TaskStartDate
        {
            get
            {
                return _TaskStartDate.ToString("yyyy-MM-dd");
            }
            set
            {
                _TaskStartDate = Convert.ToDateTime(value);
            }
        }
        /// <summary>
        /// 任务失效日期
        /// </summary> 
        private DateTime _TaskEndDate;
        public string TaskEndDate
        {
            get
            {
                return _TaskEndDate.ToString("yyyy-MM-dd");
            }
            set
            {
                _TaskEndDate = Convert.ToDateTime(value);
            }
        }

        public int TaskStatus { get; set; }
        public string TaskStatusStr { get; set; }

        public int UsedSMSReport { get; set; }

        public int UsedMailReport { get; set; }

        public int UsedRTXReport { get; set; }
        public int RetryTimes { get; set; }

        public string WaitTimes { get; set; }
        public string OpreateUser { get; set; }

        private DateTime _CreateTime;
        public string CreateTime
        {
            get
            {
                return _CreateTime.ToString("yyyy-MM-dd");
            }
            set
            {
                _CreateTime = Convert.ToDateTime(value);
            }
        }
        public string _parentId { get; set; }
        public string state { get; set; }
        public string IsCopy { get; set; }
        /// <summary>
        /// 任务描述
        /// </summary>
        public string TaskDescription { get; set; }
        public int Count { get; set; }

        //TaskPlanModel
        public string TaskGuid { get; set; }  
        public string TaskIntervalWeeks { get; set; }
        public string PlanType { get; set; }
        public string DayForMonth { get; set; }
        public string TaskIntervalMonth { get; set; }
        public string TaskIntervalMonth2 { get; set; }
        public string WeekForMonth { get; set; }
        public string WeekDay { get; set; }
        public string DBName { get; set; } 
    }
}
